﻿@inherits WebViewPage<Limestone.Fields.TextField>

<input type="hidden" name="Page.Fields[@Model.Index].ModelType" value="@Model.GetType()" />
<input type="hidden" name="Page.Fields[@Model.Index].Name" value="@Model.Name" />
@if (Model.Settings.Multiline)
{
    <textarea rows="10" cols="40" id="Page_Fields_@(Model.Name)" name="Page.Fields[@Model.Index].Text">@Model.Text</textarea>
}
else
{
    <input type="text" id="Page_Fields_@(Model.Name)" name="Page.Fields[@Model.Index].Text" value="@Model.Text" />
}